|
|
 |
|
|
|
|
5. What four factors should you take into account when assessing the state of your development efforts? |
|
|
|
 |
|
|
|
|
The number of interface and implementation classes |
|
|
|
 |
|
|
|
|
Of the interface classes, the number of classes that implement them |
|
|
|
 |
|
|
|
|
The number of public methods per class |
|
|
|
 |
|
|
|
|
Coupling between objects |
|
|
|
 |
|
|
|
|
1. What are some benefits of scenario scripts? |
|
|
|
 |
|
|
|
|
Scenario scripts provide you with a guideline for the behavior and features of each form. This practice of scripting your forms also encourages reuse of forms by not only other team members but also other teams. |
|
|
|
 |
|
|
|
|
2. What design pattern is useful for implementing the undo operations for an Undo button? |
|
|
|
 |
|
|
|
|
The Memento design pattern. |
|
|
|
 |
|
|
|
|
3. What are some negative aspects of naming buttons OK and Cancel? |
|
|
|
 |
|
|
|
|
The word OK, which is not a verb, is sometimes ambiguous because it doesn't indicate a business process being complete. In general, command buttons should have names in verb form that indicate some action or event. At times, the name Cancel is ambiguous because it doesn't specifically indicate what is being canceled. Cancel buttons are more appropriate for small forms that have only a progress bar control indicating some process is underway that can be canceled. In most circumstances, however, what is typically called the Cancel button should instead be called Close. |
|
|
|
 |
|
|
|
|
4. What are the main requirements of an undo operation? |
|
|
|
 |
|
|
|
|
Cancellation of a transaction. |
|
|
|
 |
|
|
|
|
Repopulation of previous data into display controls such as text boxes, labels, combo and list boxes, and grids. |
|
|
|
 |
|
|
|
|
1. Describe one way you can design the form to automatically tab to the next data entry field? |
|
|
|
 |
|
|
|
|
Set the tab stop values of each of the form objects. For grids and spreadsheets, be sure to enable the user to tab to the next logical column in the row. When necessary, design your GUI form to automatically tab to the next logical data entry item. |
|
|
|
|
|